package com.x.mvp.utils;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

import timber.log.Timber;

public class AppUtils {

    public static final void openBrowser(Context context, String url) {
        try {
            Intent intent = new Intent();
            intent.setAction(Intent.ACTION_VIEW);
            intent.setData(Uri.parse(url));
            context.startActivity(intent);
        } catch (Exception e) {
            Timber.e(e, "error while open browser!");
        }
    }
}